import { request } from '../../request';

/** @description: 查询组织架构树 */
export function getOrgTree(params?) {
  return request({
    url: '/workflow/oa/org/tree',
    method: 'GET',
    params
  });
}

/** @description: 模糊搜索用户 */
export function searchOrgTreeUser(params?) {
  return request({
    url: '/workflow/oa/org/tree/user/search',
    method: 'GET',
    params
  });
}

/** 获取用户信息 */
export function getUserInfo(userId: string) {
  return request({
    url: '/workflow/oa/org/getUserInfo',
    method: 'GET',
    params: {
      userId
    }
  });
}
